package com.example.travel.mapper;

import com.example.travel.entity.Leave;
import com.example.travel.entity.User;
import com.example.travel.entity.Write;
import com.example.travel.entity.bo.WriteBO;
import com.example.travel.entity.dto.WriteDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    boolean updateInformation(User user);

    int selectUsername(User user);

    int selectEmail(User user);

    boolean insertWrite(Write write);

    List<WriteBO> selectWrite(WriteDTO writeDTO);

    WriteBO selectWriteParticulars(WriteDTO writeDTO);

    boolean insertLeave(Leave leave);

    List<Leave> selectLeave();


    boolean updateWrite(WriteDTO writeDTO);

    boolean delWrite(WriteDTO writeDTO);
}
